<@html>
<script type="text/javascript">
	dojo.require("dijit.dijit");
	dojo.require("dijit.form.Form");
	dojo.require("dijit.form.DateTextBox");
	dojo.require("dijit.form.Button");
	dojo.require("dijit.form.ValidationTextBox");
</script>
<form id="updateForm" method="post" dojoType="dijit.form.Form">
<input type="hidden" id="version" name="warehouse.version"
       value="${(warehouse.version)!}"/>
<input type="hidden" id="warehouse" name="warehouse.id"
       value="${(warehouse.id)!}"/>
<table>
<tr>
	<td>
	<@s.text name="warehouseCode"/>：
	</td>
	<td>
		<input id="warehouseCode" name="warehouse.warehouseCode" dojoType="dijit.form.ValidationTextBox" required="true"
		       value="${(warehouse.warehouseCode)!}"/>
	</td>
	<td>
	<@s.text name="warehouseName"/>：
	</td>
	<td>
		<input id="warehouseName" name="warehouse.warehouseName" dojoType="dijit.form.ValidationTextBox" required="true"
		       value="${(warehouse.warehouseName)!}"/>
	</td>
	<td>
	<@s.text name="division"/>：
	</td>
	<td>
		<input id="division" name="warehouse.division" dojoType="dijit.form.ValidationTextBox" required="true"
		       value="${(warehouse.division)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="locTerm"/>：
	</td>
	<td>
		<input id="locTerm" name="warehouse.locTerm" dojoType="dijit.form.ValidationTextBox" required="true"
		       value="${(warehouse.locTerm)!}"/>
	</td>
	<td>
	<@s.text name="warehouseType"/>：
	</td>
	<td>
		<input id="warehouseType" name="warehouse.warehouseType" dojoType="dijit.form.ValidationTextBox" required="true"
		       value="${(warehouse.warehouseType)!}"/>
	</td>
	<td>
	<@s.text name="maxArea"/>：
	</td>
	<td>
		<input id="maxArea" name="warehouse.maxArea" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.maxArea)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="availableArea"/>：
	</td>
	<td>
		<input id="availableArea" name="warehouse.availableArea" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.availableArea)!}"/>
	</td>
	<td>
	<@s.text name="areaUnit"/>：
	</td>
	<td>
		<input id="areaUnit" name="warehouse.areaUnit" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.areaUnit)!}"/>
	</td>
	<td>
	<@s.text name="remark"/>：
	</td>
	<td>
		<input id="remark" name="warehouse.remark" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.remark)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="conservator"/>：
	</td>
	<td>
		<input id="conservator" name="warehouse.conservator" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.conservator)!}"/>
	</td>
	<td>
	<@s.text name="owner"/>：
	</td>
	<td>
		<input id="owner" name="warehouse.owner" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.owner)!}"/>
	</td>
	<td>
	<@s.text name="contactCode"/>：
	</td>
	<td>
		<input id="contactCode" name="warehouse.contactCode" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.contactCode)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="contactName"/>：
	</td>
	<td>
		<input id="contactName" name="warehouse.contactName" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.contactName)!}"/>
	</td>
	<td>
	<@s.text name="contactEmail"/>：
	</td>
	<td>
		<input id="contactEmail" name="warehouse.contactEmail" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.contactEmail)!}"/>
	</td>
	<td>
	<@s.text name="contactFax"/>：
	</td>
	<td>
		<input id="contactFax" name="warehouse.contactFax" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.contactFax)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="signMan"/>：
	</td>
	<td>
		<input id="signMan" name="warehouse.signMan" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.signMan)!}"/>
	</td>
	<td>
	<@s.text name="signTelephone"/>：
	</td>
	<td>
		<input id="signTelephone" name="warehouse.signTelephone" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.signTelephone)!}"/>
	</td>
	<td>
	<@s.text name="status"/>：
	</td>
	<td>
		<input id="status" name="warehouse.status" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.status)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="address"/>：
	</td>
	<td>
		<input id="address" name="warehouse.address" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.address)!}"/>
	</td>
	<td>
	<@s.text name="postcode"/>：
	</td>
	<td>
		<input id="postcode" name="warehouse.postcode" dojoType="dijit.form.ValidationTextBox"
		       value="${(warehouse.postcode)!}"/>
	</td>
	<td>
	<@s.text name="udf1"/>：
	</td>
	<td>
		<input id="udf1" name="warehouse.udf1" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf1)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf2"/>：
	</td>
	<td>
		<input id="udf2" name="warehouse.udf2" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf2)!}"/>
	</td>
	<td>
	<@s.text name="udf3"/>：
	</td>
	<td>
		<input id="udf3" name="warehouse.udf3" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf3)!}"/>
	</td>
	<td>
	<@s.text name="udf4"/>：
	</td>
	<td>
		<input id="udf4" name="warehouse.udf4" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf4)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf5"/>：
	</td>
	<td>
		<input id="udf5" name="warehouse.udf5" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf5)!}"/>
	</td>
	<td>
	<@s.text name="udf6"/>：
	</td>
	<td>
		<input id="udf6" name="warehouse.udf6" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf6)!}"/>
	</td>
	<td>
	<@s.text name="udf7"/>：
	</td>
	<td>
		<input id="udf7" name="warehouse.udf7" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf7)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf8"/>：
	</td>
	<td>
		<input id="udf8" name="warehouse.udf8" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf8)!}"/>
	</td>
	<td>
	<@s.text name="udf9"/>：
	</td>
	<td>
		<input id="udf9" name="warehouse.udf9" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf9)!}"/>
	</td>
	<td>
	<@s.text name="udf10"/>：
	</td>
	<td>
		<input id="udf10" name="warehouse.udf10" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf10)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf11"/>：
	</td>
	<td>
		<input id="udf11" name="warehouse.udf11" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf11)!}"/>
	</td>
	<td>
	<@s.text name="udf12"/>：
	</td>
	<td>
		<input id="udf12" name="warehouse.udf12" dojoType="dijit.form.ValidationTextBox" value="${(warehouse.udf12)!}"/>
	</td>
	<td>
	<@s.text name="udf13"/>：
	</td>
	<td>
		<input id="udf13" name="warehouse.udf13" dojoType="dijit.form.DateTextBox" value="${getDate(warehouse.udf13)}"
		       value="${(warehouse.udf13)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf14"/>：
	</td>
	<td>
		<input id="udf14" name="warehouse.udf14" dojoType="dijit.form.DateTextBox" value="${getDate(warehouse.udf14)}"
		       value="${(warehouse.udf14)!}"/>
	</td>
	<td>
	<@s.text name="udf15"/>：
	</td>
	<td>
		<input id="udf15" name="warehouse.udf15" dojoType="dijit.form.DateTextBox" value="${getDate(warehouse.udf15)}"
		       value="${(warehouse.udf15)!}"/>
	</td>
	<td>
	<@s.text name="udf16"/>：
	</td>
	<td>
		<input id="udf16" name="warehouse.udf16" dojoType="dijit.form.DateTextBox" value="${getDate(warehouse.udf16)}"
		       value="${(warehouse.udf16)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf17"/>：
	</td>
	<td>
		<input id="udf17" name="warehouse.udf17" dojoType="dijit.form.DateTextBox" value="${getDate(warehouse.udf17)}"
		       value="${(warehouse.udf17)!}"/>
	</td>
	<td>
	<@s.text name="udf18"/>：
	</td>
	<td>
		<input id="udf18" name="warehouse.udf18" dojoType="dijit.form.DateTextBox" value="${getDate(warehouse.udf18)}"
		       value="${(warehouse.udf18)!}"/>
	</td>
</tr>
</table>
<div dojoType="dijit.layout.TabContainer" style="width:100%;height:300px;">
</div>
<@listButton/>
</form>
</@html>
<script language="javascript" type="text/javascript">
	dojo.ready(function() {
		//事件注册
		//保存
		dojo.connect(dijit.byId("btnSave"), "onClick", function() {
			//增加列表参数
			var param = dojo.formToObject("updateForm");
			if (dijit.byId("updateForm").validate()) {
				dojo.xhrPost({
							url : "${(path)!}/master/warehouse.update.do",
							content : param,
							handleAs : "json",
							load : function(json) {
								handleJsonMessage({
											message:json,
											callback:function() {
												parent.publish("warehouse/refresh");
												parent.closeDialog();
											}
										})
							}
						});
			}
		});
	})
</script>
